package
{
	import flash.display.Graphics;
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.geom.Rectangle;
	import starling.core.Starling;
	import com.greensock.core.TweenCore;
	import screens.GamePlay;
	import screens.Question;
	import flash.display3D.Context3D;
	import flash.display3D.Context3DRenderMode;
	
	/**
	 * ...
	 * @author Abiyasa
	 */
	[SWF(width = "836", height = "557", frameRate = "60", backgroundColor = "#000000")]
	public class Main extends Sprite
	{
		private var _starling:Starling;

		public function Main():void
		{
			super();
			this.addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true);
		}
		private function init(e:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			stage.align = StageAlign.TOP_LEFT;
			stage.scaleMode = StageScaleMode.EXACT_FIT;
				// resize the viewport:
			_starling = new Starling(Game, this.stage);
			
			_starling.stage.stageWidth = 1050;
			_starling.stage.stageHeight = 700;
			_starling.viewPort =  new Rectangle(0, 0, 836, 557);
			_starling.start();
			//_starling.showStats = true;
/*			
			var rectangle:Shape = new Shape; // initializing the variable named rectangle
            //rectangle.graphics.beginFill(0xFF0000); // choosing the colour for the fill, here it is red
			rectangle.graphics.lineStyle(1, 0xFF0000);
            rectangle.graphics.drawRect(0, 0, 441,210); // (x spacing, y spacing, width, height)
            addChild(rectangle); // adds the rectangle to the stage
			
				var rectangle:Shape = new Shape; // initializing the variable named rectangle
            //rectangle.graphics.beginFill(0xFF0000); // choosing the colour for the fill, here it is red
			rectangle.graphics.lineStyle(1, 0xFF0000);
            rectangle.graphics.drawRect(547, 0, 503,366); // (x spacing, y spacing, width, height)
            addChild(rectangle); // adds the rectangle to the stage*/
		}

	}

}